<%--
 *  File:    specailCharEdit.jsp
 *  @Author: jeanhuang
 *  Date:    2013/10/30
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page import="com.oval.util.OvalLabel" %>
<%@ page import="com.oval.util.OvalCustomColumn" %>
<%@ page import="com.oval.util.OvalCustomMessage" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<% //--------------------------------------  setting logger --%>

<% 
	String strModuleName = "IMG";
	String privilegeCode = "IMG0303";
   String strTableName = "v_uploadcolumnreplaces";
   String contextPath = request.getContextPath();
%>



<%
   Category cat = Category.getInstance("jsp.specailCharEdit");
   HashMap specialchardata = (HashMap)session.getAttribute("specialchardata");
   if(specialchardata == null)
   {
      specialchardata = new HashMap();
   }
   
   String struploadcolumnconfigid=request.getParameter("uploadcolumnconfigid")+"";
   if(session.getAttribute("uploadcolumnconfigid")!=null){
 		struploadcolumnconfigid=session.getAttribute("uploadcolumnconfigid")+"";
 	}
%>
<% //--------------------------------------  include files list --%>

<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/FrmDefault.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>
<%@ include file="/inc/AlertError.inc" %>
<%@ include file="/inc/SummaryDivision.inc" %>
<html>
<head>
<title></title>
<PageFlow:CheckPageFlow pageName="p_specialcharedit"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath%>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath%>/js/ScriptLib.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/FuncLib.js"></script>
</head>

<%@ include file="/inc/CheckPassword.inc" %>
<script language="JavaScript">


function page_done(){
	if(!checkForm(cform)) return;
    cform.actionname.value = "save";
    cform.target = "_parent";
    isRunning = true;
    cform.submit();
}
</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<iframe id="reloadHandler" name="reloadHandler" style="display:none"></iframe>
<form name="cform" method="post" action="<%=contextPath%>/Dispatcher" >
<table width="100%" cellspacing="0" cellpadding="0" border="0">
  <tr> 
    <td valign="top"> 
        <input type="hidden" name="pagename" value="p_specialcharedit" >
        <input type="hidden" name="actionname" >
        <custom:hidden property="uploadcolumncheckid" value="<%=struploadcolumnconfigid %>" />
        <custom:hidden property="uploadcolumnreplacesid" name='specialchardata' />
        
        
        <table width="100%" border="1" cellpadding="2" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0" align="center">
          <tr> 
            <td class="need" width="95"><%= label.getLabelName("L_SortNo") %><%= label.getLabelName("L_Colon") %></td>
            <td>
            	<custom:text property="sortno" name="specialchardata"  />
            </td>
            <td class="need" width="95"><%= label.getLabelName("L_SourceCharRule") %><%= label.getLabelName("L_Colon") %></td>
            <td>
            	<custom:text name="specialchardata" property="sourcechars" command="notnull" label="L_SourceCharRule" />
            </td>
            <td class="need" width="95"><%= label.getLabelName("L_TargetChar") %><%= label.getLabelName("L_Colon") %></td>
            <td>
            <custom:text name="specialchardata" property="targetchars" command="notnull" label="L_TargetChar" />
            </td>
          </tr>
         
         
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td class="summary_top" ></td>
          </tr>
          <tr> 
            <td class="td_center"> <a onclick="page_done()"><custom:button type="1" label="L_Finish" imgsrc="finish.gif" border="0" style="width:60"/></a></td>
          </tr>
        </table>
    </td>
  </tr>
</table>
</form>
</body>
</html>